import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 黎鹤舞
 * Date: 2023-11-05
 * Time: 23:24
 */
public class Test {

    public static void fun1(int[] arr) {
        arr = new int[] {11,22,33,44};
    }
    public static void fun2(int[] arr) {
        arr[0] = 0;
    }
    public static void main(String[] args) {
        int[] arr = {1,2,3,4};
        fun1(arr);
        fun2(arr);
        System.out.println(Arrays.toString(arr));
    }
}
